﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucCustomer.ascx.cs" Inherits="UserControl_WebUserControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<div class="full_width">
    <p class="breadcrumb">
        <a href="Default.aspx">Home</a> / <strong class="active-link">
            <asp:Label ID="lblTitlePage" runat="server"></asp:Label></strong></p>
</div>
<div class=" block">
    <div id="left-navigation">
        <h3>
            Functions</h3>
      
        </ul>
        <table width="100%" style="margin-right: 5px">
            <tr>
                <td>
                    <asp:Button ID="btnSave" runat="server" Text="SAVE" CssClass="button_all" OnClick="btnSave_Click"
                        ValidationGroup="validSave" />
                </td>
            </tr>
              <%--<tr>
                <td>
                    <asp:Button ID="btnNew" runat="server" CssClass="button_all" 
                        Text="NEW CUSTOMER" onclick="btnNew_Click" />
                </td>
            </tr>--%>
            <tr>
                <td>
                    <asp:Button ID="btnNewBookIn" runat="server" CssClass="button_all" Text="NEW BOOK IN"
                        OnClick="btnNewBookIn_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnNewPurchase" runat="server" CssClass="button_all" Text="NEW PURCHASE" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnDiscard" runat="server" CssClass="button_all" Text="DISCARD" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnExit" runat="server" CssClass="button_all" Text="EXIT" OnClick="btnExit_Click" />
                </td>
            </tr>
            
        </table>
    </div>
</div>
<div class="right_three r-align  ">
    <h3>
        CUSTOMER</h3>
    <table id="table" width="100%" border="0">
        <tr>
            <td valign="top">
                Title
                <asp:DropDownList ID="drTitle" runat="server" Width="50px">
                    <asp:ListItem>Mr</asp:ListItem>
                    <asp:ListItem>Mrs</asp:ListItem>
                    <asp:ListItem>Miss</asp:ListItem>
                </asp:DropDownList>
                First Name
            </td>
            <td>
                <label>
                    <asp:TextBox ID="txtFName" CssClass="inp-form" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFName"
                        SetFocusOnError="true" Text="" ValidationGroup="validSave" ErrorMessage="*" Display="Static"></asp:RequiredFieldValidator>
                </label>
            </td>
            <td>
                <div align="right">
                    Last Name</div>
            </td>
            <td>
                <asp:TextBox ID="txtLName" CssClass="inp-form" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLName"
                    SetFocusOnError="true" Text="" ValidationGroup="validSave" ErrorMessage="*" Display="Static"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <div align="right">
                    Company Name</div>
            </td>
            <td colspan="3">
                <asp:TextBox ID="txtCompany" CssClass="inp-form" Width="90%" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                Number
            </td>
            <td>
                <asp:TextBox ID="txtNumber" CssClass="inp-form" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtNumber"
                    SetFocusOnError="true" Text="" ValidationGroup="validSave" ErrorMessage="*" Display="Static"></asp:RequiredFieldValidator>
            </td>
            <td style="text-align: right">
                Street Name
            </td>
            <td>
                <asp:TextBox ID="txtStreet" CssClass="inp-form" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtStreet"
                    SetFocusOnError="true" Text="" ValidationGroup="validSave" ErrorMessage="*" Display="Static"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                State
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:DropDownList ID="drState" runat="server" Height="22px" Width="90px" AutoPostBack="true">
                        </asp:DropDownList>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td style="text-align: right">
                Email</td>
            <td>
                <asp:TextBox ID="txtEmail" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                Post Code
            </td>
            <td>
                <asp:UpdatePanel ID="update" runat="server">
                    <ContentTemplate>
                     <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                            TargetControlID="txtPostcode">
                        </asp:FilteredTextBoxExtender>
                        <asp:TextBox ID="txtPostcode" CssClass="inp-form" runat="server" AutoPostBack="True"
                            OnTextChanged="txtPostcode_TextChanged"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtPostcode"
                            SetFocusOnError="true" Text="" ValidationGroup="validSave" ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="txtPostCode" EventName="TextChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
            <td style="text-align: right">
                <asp:Label ID="lbpass" runat="server" Text="Password"></asp:Label> 
            </td>
            <td>
                <asp:TextBox ID="txtPass" TextMode="Password" CssClass="inp-form" 
                    runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                Suburb&nbsp;             </td>
            <td>
                <asp:UpdatePanel ID="state" runat="server">
                    <ContentTemplate>
                        <asp:DropDownList ID="drSuburb" runat="server" Height="22px" Width="73%" AutoPostBack="True">
                        </asp:DropDownList>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td style="text-align: right">
                Home phone
           
            <td>
               <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Numbers"
                            TargetControlID="txtHomePhone">
                        </asp:FilteredTextBoxExtender>
                <asp:TextBox ID="txtHomePhone" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <div align="right">
                    Mobile</div>
            </td>
            <td>
             <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers"
                            TargetControlID="txtMobile">
                        </asp:FilteredTextBoxExtender>
                <asp:TextBox ID="txtMobile" CssClass="inp-form" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtMobile"
                    SetFocusOnError="true" Text="" ValidationGroup="validSave" ErrorMessage="*" Display="Static"></asp:RequiredFieldValidator>
            </td>
            <td>
                <div align="right">
                    Work phone</div>
            </td>
            <td>
             <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" FilterType="Numbers"
                            TargetControlID="txtWorkPhone">
                        </asp:FilteredTextBoxExtender>
                <asp:TextBox ID="txtWorkPhone" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <div align="right">
                    Preferred Contact Method</div>
            </td>
            <td>
                <asp:DropDownList ID="drPreConMeth" runat="server" Width="90px" CssClass="styledselect_form_1">
                    <asp:ListItem Value="1">Mobile</asp:ListItem>
                    <asp:ListItem Value="2">Email</asp:ListItem>
                    <asp:ListItem Value="3">Home</asp:ListItem>
                    <asp:ListItem Value="4">Work</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                <div align="right">
                    Fax</div>
            </td>
            <td>
            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" FilterType="Numbers"
                            TargetControlID="txtFax">
                        </asp:FilteredTextBoxExtender>
                <asp:TextBox ID="txtFax" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
        </tr>
    </table>
    <div class="clearContent" style="text-align: center">
<asp:Label ID="lblResult" runat="server" Style="color: Red" />
    </div>
    <!--clear content -->
</div>
